package com.xinchao.util;

import com.xinchao.constant.BusinessConstant;

/**
 * 
 * <p>Title: RegionUtil</p>  
 * <p>Description: 省与大区的maping关系</p>  
 * @author huangf 
 * @date 2018年7月12日
 */
public class RegionUtil {
	
	public static String getProvinceRegion(String province) {
		String region = "";
		switch (province) {
		case "山东省":
		case "江苏省":
		case "安徽省":
		case "浙江省":
		case "福建省":
		case "上海市":
			region = BusinessConstant.REGION_EAST_CHINA;
			break;
		
		case "广东省":
		case "广西壮族自治区":
		case "海南省":
			region = BusinessConstant.REGION_SOUTH_CHINA;
			break;
		
		case "湖北省":
		case "湖南省":
		case "河南省":
		case "江西省":
			region = BusinessConstant.REGION_CENTRAL_CHINA;
			break;
		
		case "北京市":
		case "天津市":
		case "河北省":
		case "山西省":
		case "内蒙古自治区":
			region = BusinessConstant.REGION_NORTH_CHINA;
			break;
		
		case "宁夏回族自治区":
		case "新疆维吾尔自治区":
		case "青海省":
		case "陕西省":
		case "甘肃省":
			region = BusinessConstant.REGION_WEST_NORTH;
			break;
			
		case "四川省":
		case "云南省":
		case "贵州省":
		case "重庆市":
		case "西藏自治区":
			region = BusinessConstant.REGION_WEST_SOUTH;
			break;
		case "辽宁省":
		case "吉林省":
		case "黑龙江省":
			region = BusinessConstant.REGION_NORTH_EAST;
			break;	
		default:
			break;
		}
		return region;
				
	}
	
}
